package 类作为成员变量;

public class weapon {
    private String weaponname;

    public String getWeaponname() {
        return weaponname;
    }

    public void setWeaponname(String weaponname) {
        this.weaponname = weaponname;
    }
}
